package java_012_zuoye01;

public class java11 {
	public static void main(String[] args) {
		int[] arr={1,2,3,4,5,6,7,8,9};
		newArr(arr);
	}

	private static void newArr(int[] arr) {
		int[] arrB=new int[4];
		for (int i=2;i<=5;i++){
			arrB[i-2]=arr[i];
		}
		for (int i=0;i<arrB.length;i++){
			System.out.print(arrB[i]+" ");
		}
		
	}
}
